package com.aplikata.evok.bo;

import com.aplikata.bo.City;

/**
 * EvkContactPerson entity. @author MyEclipse Persistence Tools
 */

public class ContactPerson implements java.io.Serializable {

	/**
	 * @Fields serialVersionUID : TODO
	 */

	private static final long serialVersionUID = 1L;
	// Fields

	private Long id;
	private City city;
	private DomainPatient domainPatient;
	private Integer relationship;
	private String surname;
	private String name;
	private String street;
	private String tel1;
	private String tel2;
	private String mobHome;
	private String mobOffice;
	private String email1;
	private String email2;
	private String remark;

	// Constructors
	public final static String QY_FIND_BY_PATIENT = "ContactPerson.findByPatient";

	/** default constructor */
	public ContactPerson() {
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public City getCity() {
		return this.city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public Integer getRelationship() {
		return relationship;
	}

	public void setRelationship(Integer relationship) {
		this.relationship = relationship;
	}

	public String getSurname() {
		return this.surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStreet() {
		return this.street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getTel1() {
		return this.tel1;
	}

	public void setTel1(String tel1) {
		this.tel1 = tel1;
	}

	public String getTel2() {
		return this.tel2;
	}

	public void setTel2(String tel2) {
		this.tel2 = tel2;
	}

	public String getMobHome() {
		return this.mobHome;
	}

	public void setMobHome(String mobHome) {
		this.mobHome = mobHome;
	}

	public String getMobOffice() {
		return this.mobOffice;
	}

	public void setMobOffice(String mobOffice) {
		this.mobOffice = mobOffice;
	}

	public String getEmail1() {
		return this.email1;
	}

	public void setEmail1(String email1) {
		this.email1 = email1;
	}

	public String getEmail2() {
		return this.email2;
	}

	public void setEmail2(String email2) {
		this.email2 = email2;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public DomainPatient getDomainPatient() {
		return domainPatient;
	}

	public void setDomainPatient(DomainPatient domainPatient) {
		this.domainPatient = domainPatient;
	}

	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null)
			return false;
		if (!(o instanceof ContactPerson))
			return false;
		if (isNew() || ((ContactPerson) o).isNew())
			return false;
		else
			return getId().equals(((ContactPerson) o).getId());
	}

	public boolean isNew() {
		return getId() == null;
	}
}